package scenes;
import awe6.core.Scene;
import awe6.core.TextStyle;
import awe6.extras.gui.Text;
import awe6.interfaces.ETextStyle;
import AssetManager;
import awe6.interfaces.ITextStyle;
import Session;

/**
 * ...
 * @author Andrew Ekeren
 */

class AScene extends Scene 
{
	private var _assetManager:AssetManager;
	private var _session:Session;
	private var _title:Text;
	
	override private function _init():Void  {
		
		super._init();
		
		_assetManager = cast( _kernel.assets, AssetManager );
		
		_session = cast( _kernel.session, Session );
		
		_title = new Text ( _kernel, _kernel.factory.width, _kernel.factory.height);
		_title.textStyle = _kernel.factory.createTextStyle( ETextStyle.HEADLINE );
		_title.text = "WEEEEEEEEEEEEEEEEEEEEEEEE".toString();
		_title.x = 20;
		_title.y = _kernel.factory.height - 80;
		addEntity( _title, true, 1000 );
		
		trace(getEntitiesByClass(Text)[0].text.toString());
		
		trace("ping");
		
	}
	
}
